package chapter14.interfaces;

/**
 * @author : DuJiabao
 * @Date : 2021/3/4 9:51
 * @Project : thinking_in_java
 * @File : null.java
 * @Desc :
 */
public class InnerA {
  // 内部类
  private static class C implements A {
    @Override
    public void f() {
      System.out.println("public C.f()");
    }

    public void g() {
      System.out.println("public C.g()");
    }

    void u() {
      System.out.println("package C.u()");
    }

    protected void v() {
      System.out.println("protected C.v()");
    }

    private void w() {
      System.out.println("private C.w()");
    }
  }

  public static A makeA() {
    return new C();
  }
}
